package homewoek12月22号.demo1.d4;

import java.util.ArrayList;

public class Student extends Course {
    private String id;
    private String name;
    private String age;
    private String course ;
    private ArrayList<Course> list =new ArrayList<>();

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age='" + age + '\'' +
                ", course='" + course + '\'' +
                ", list=" + list +
                '}';
    }

    public Student(String id, String name, String age, String course, ArrayList<Course> list) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.course = course;
        this.list = list;
    }

    public ArrayList<Course> getList() {
        return list;
    }

    public void setList(ArrayList<Course> list) {
        this.list = list;
    }

    public Student() {
    }

    public Student(String id, String name, String age, String course) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.course = course;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }
}
